package org.tis.tools;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

/**
 * describe: 网关服务启动类
 *
 * {注解 EnableGlobalMethodSecurity} 启用全局方法前置安全检查
 * @author zhaoch
 * @date 2018/8/28
 **/
@SpringBootApplication
@EnableDiscoveryClient
@EnableZuulProxy
@EnableGlobalMethodSecurity(prePostEnabled = true)
public class ToolsGatewayServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(ToolsGatewayServerApplication.class, args);
    }
}
